/**
 * PageMarket
 * BrandListAdapter.java
 * com.android.pagemarket.ui.adapter
 * 
 */
package com.android.pagemarket.ui.adapter;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;

import com.android.pagemarket.R;
import com.android.pagemarket.business.model.Paper.Brand;
import com.android.pagemarket.ui.widget.BrandItemView;

/*********************************************************
 * @author : zhaohua
 * @version : 2012-11-28
 * @see : 
 * @Copyright : copyrights reserved by personal 2007-2012
 **********************************************************/
public class BrandListAdapter extends ArrayListAdapter<Brand>
{

    public BrandListAdapter(Context context)
    {
        super(context);
    }

    @Override
    public View getView(int position, View convertView, ViewGroup parent)
    {
        if(convertView == null)
        {
            convertView = inflater.inflate(R.layout.listitem_brand, null);
        }
        BrandItemView view = (BrandItemView)convertView;
        view.bindData((Brand)getItem(position));
        
        return convertView;
    }
}
